package com.shyroke.daydayzhuansvc.service;

import com.shyroke.daydayzhuanapi.dto.CommentDto;
import com.shyroke.daydayzhuanapi.dto.UserMain;
import com.shyroke.daydayzhuanapi.entity.CommentEntity;
import com.shyroke.daydayzhuansvc.util.Page;
import com.shyroke.daydayzhuansvc.util.TabelData;

import java.util.List;

/**
 * @author youhj
 * @date 2019/9/26 0026 下午 1:23
 */
public interface ICommentService {
    List<CommentDto> getCommentTreeList(Integer projectId,Integer start,Integer size);

    TabelData<CommentDto> getComment(Page page, Integer projectId);

    List<CommentDto> getComment(Integer projectId);

    int getIndexDataCount(Integer projectId);

    void insert(CommentDto comment);

    List<CommentEntity> getCommentByProjectId(Integer articleId);

    TabelData<CommentDto> getTableDate(Page page, String title, UserMain user);

    CommentEntity getCommentById(Integer id);

    void del(Integer id);

    List<CommentDto> getNewComment();
}
